package com.hzdl.house_mgr.service;

import com.github.pagehelper.PageInfo;
import com.hzdl.house_mgr.bean.Role;

import java.util.List;

public interface RoleService {

    int insert(Role role);

    int deleteRoleById(Integer roleId);

    int updateRole(Role role);

    Role selectById(Integer roleId);

    /**
     * 查询所有角色
     */
    PageInfo<Role> findRoleByWhere(String roleName, String roleDesc, Integer page, Integer limit);

    Integer getCountByWhere(String roleName, String roleDesc);

    int updRoleMenuByRoleId(Integer roleId, Integer[] arr);

    List<Role> findAll();

    List<Role> findRoleByAdminId(Integer userId);
}
